package com.ykdl.member.kid.beans;

import java.io.Serializable;
import java.util.ArrayList;

import android.R.bool;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.ykdl.member.kid.models.FileMetas;

import net.wxxr.http.interfaces.IJsonParser;

public class Listinfobean implements Serializable ,IJsonParser{

	/**  "group_id": 群组标识
        "group_name": 群组名称
        "group_type”: 群组类别（保留）
        "description": 群组描述
        "display_order": 显示顺序（保留）
        "state": 群组状态（保留）
        "notice": 群公告
        "created_time": 创建时间
        "latest_topic_ids”: 最后的topic
	"created_actor": actor类
	"icon_file_meta": 群图标（file_meta类）
        "member_count": 成员数
	"topic_count": 帖子数
	“is_registration”：是否已签到
	“is_member”：是否是成员
	”new_topics_count“：上次浏览至今的新贴数量
	”latest_topics“： 最新的帖子（3条）

	 * 
	 */
	private static final long serialVersionUID = -4789121194392221101L;
	private String created_time ;
	private String description ;
	private int display_order ;
	private int group_id ;
	private String group_name ;
	private int group_type ;
	private FileMetas icon_file_meta ;
	private boolean is_registration ;
	private boolean is_member ;
	private int state ;
	private String notice ;
	private UserActorBean created_actor ;
	private int member_count ;
	private int topic_count ;
	private int new_topics_count ;
	private ArrayList<OptionsBean> post_options ;
	private ArrayList<OptionsBean> topic_options ;
	private ArrayList<TopicBean>  latest_topics;
	public ArrayList<TopicBean> getLatest_topics() {
		return latest_topics;
	}
	public ArrayList<OptionsBean> getTopic_options() {
		return topic_options;
	}
	public ArrayList<OptionsBean> getPost_options() {
		return post_options;
	}
	public int getGroup_id() {
		return group_id;
	}
	public String getGroup_name() {
		return group_name;
	}
	public int getGroup_type() {
		return group_type;
	}
	public String getDescription() {
		return description;
	}
	public int getDisplay_order() {
		return display_order;
	}
	public int getState() {
		return state;
	}
	public String getNotice() {
		return notice;
	}
	public String getCreated_time() {
		return created_time;
	}
	public UserActorBean getCreated_actor() {
		return created_actor;
	}
	public FileMetas getIcon_file_meta() {
		return icon_file_meta;
	}
	public int getMember_count() {
		return member_count;
	}
	public int getTopic_count() {
		return topic_count;
	}
	public boolean isIs_registration() {
		return is_registration;
	}
	public boolean isIs_member() {
		return is_member;
	}
	public int getNew_topics_count() {
		return new_topics_count;
	}
	@Override
	public IJsonParser parse(String json) throws Exception {
		// TODO Auto-generated method stub
		Gson   gson = null;
		if(null != json){
			GsonBuilder b = new GsonBuilder();
			gson  = b.create();
			return gson.fromJson(json, Listinfobean.class);
		}
		return null;
	}
}
